package com.iot.service;

import com.iot.mapper.DTnb_dev_jsonMapper;
import com.iot.mapper.Tnb_dev_jsonMapper;
import com.iot.pojo.MTnb_dev_json;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Tnb_dev_jsonServiceImp implements Tnb_dev_jsonService {

    @Autowired
    private Tnb_dev_jsonMapper mapper;
    @Autowired
    private DTnb_dev_jsonMapper dmapper;
    @Override
    public int getRecordCount(String sWhere) {
        return mapper.getRecordCount(sWhere);
    }

    @Override
    public int insert(MTnb_dev_json bean) throws Exception {
        return mapper.insert(bean);
    }

    @Override
    public void update(MTnb_dev_json bean) throws Exception {

    }

    @Override
    public void deleteById(int id) {

    }

    @Override
    public MTnb_dev_json single(Integer id) {
        return null;
    }


    @Override
    public List<MTnb_dev_json> fetch(String sWhere) {
        return mapper.fetch(sWhere);
    }

    @Override
    public List<Map<String, Object>> fetchByPage(Map<String, Object> map) throws Exception {

        return dmapper.fetchByPage(map) ;
    }


}
